﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace OnlineSchool.Model.Entities
{
    [Table("CATEGORIES")]
    public class Category : EntityBase<Guid, Category>
    {
        [Required]
        [Column("NAME")]
        public string Name { get; set; }
        [Column("DESCRIPTION")]
        public string Description { get; set; }
        public virtual ICollection<Expense> Expenses { get; set; }
    }
}